package com.chushouya.manager.dto.admin.merchant.api;

import com.chushouya.manager.constants.MerchantRoleTypeEnum;
import com.chushouya.manager.constants.UserStatusEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class MerchantUserApiListDTO {

    @ApiModelProperty("商家用户ID")
    private Long merchantUserId;

    @ApiModelProperty("用户账号")
    private String userName;

    @ApiModelProperty("用户手机号")
    private String userPhone;

    @ApiModelProperty("用户姓名")
    private String nickName;

    @ApiModelProperty("角色类型(0回收商负责人/1报价师)")
    private Integer roleType;

    @ApiModelProperty("角色类型(0回收商负责人/1报价师)")
    private String roleTypeDesc;

    @ApiModelProperty("最高可报价金额")
    private BigDecimal maxOfferPrice;

    @ApiModelProperty("状态")
    private Integer status;

    @ApiModelProperty("状态")
    private String statusDesc;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("创建时间")
    private Date createTime;

    public String getRoleTypeDesc() {
        return MerchantRoleTypeEnum.getDesc(this.roleType);
    }

    public String getStatusDesc() {
        return UserStatusEnum.getDesc(this.status);
    }

}
